const proxy = require('http-proxy-middleware');

module.exports = function (app) {
    app.use(
        proxy(
            '/api',
            {
                target: 'http://127.0.0.1:7012'
            }
        )
    );
    app.use(
        proxy(
            '/react',
            {
                target: 'http://127.0.0.1:7012'
            }
        )
    );
    app.use(
        proxy(
            '/upload',
            {
                target: 'http://127.0.0.1:7012'
            }
        )
    );
};